package com.belf.console.domain;

import com.belf.common.annotation.Excel;
import com.belf.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 任务日志对象 data_task_log
 * 
 * @author belf
 * @date 2024-07-25
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class DataTaskLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 执行节点IP */
    @Excel(name = "执行节点IP")
    private Long id;

    /** 任务类型 MYSQL-DM */
    @Excel(name = "任务模式")
    private String taskType;
    /** 创建表、视图 */
    @Excel(name = "创建表、视图")
    private String jobType;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Long taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 任务配置 */
    @Excel(name = "任务配置")
    private String taskConfig;

    /** 任务报告 */
    @Excel(name = "任务报告")
    private String taskReport;

    /** 任务日志 */
    @Excel(name = "任务日志")
    private String taskLog;

    private String taskResult;

    /** 程序日志 */
    @Excel(name = "程序日志")
    private String programLog;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private Long taskStatus;

    private String taskProgress;
    private String taskProgressVal;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private String  timeConsuming;

    /** 执行节点IP */
    @Excel(name = "执行节点IP")
    private String executeNodeIp;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    private AppraiseTasks appraiseTasks;
    private DataTaskConf dataTaskConf;
    private DataCheckTask dataCheckTask;

}
